<extend name="Error:base" />

<block name="title"><title>店铺-{$stores.store_name}</title></block>
 		<block name="style">
			<link href="__PUBLIC__/Home/css/store_header1.css" rel="stylesheet" type="text/css">
		</block>
		
		
 <block name="body">
 <include file="Index:store_sp_header" />			
			<div class="wrapper mt10">
			  <div class="ncs-main-container">
				<div class="title">
				  <h4>
					全部商品      
					</h4>
				</div>
				<div class="ncs-goodslist-bar">
				  <ul class="ncs-array">
					<li class=""><a href="">新品</a></li>
					<li class=""><a href="">价格</a></li>
					<li class=""><a href="">销量</a></li>
					<li class=""><a href="">收藏</a></li>
					<li class=""><a href="">人气</a></li>
				  </ul> <div class="ncs-search">
				  <form id="" name="searchShop" method="get" action="">
					<input type="hidden" name="select" value="get_st_g">
					<input type="hidden" name="stid" value="{$st_id}">
					<input type="text" class="text w120" name="inkeyword" value="" placeholder="搜索店内商品">
					<a href="javascript:document.searchShop.submit();" class="ncs-btn">搜索</a>
				  </form>
				</div>
				</div>
					<div class="content ncs-all-goods-list mb15">
				  <ul>
					<foreach name="goods_list" item="vo">
					<li>
					  <dl>
						<dt><a href="/shop/goods.html?gid={$vo.id}" class="goods-thumb" target="_blank"><img src="{$vo.pic}" alt="{$vo.productname}"></a>
						  <ul class="goods-thumb-scroll-show">
						  <foreach name="vo.imgset" item="son">
							 <li <if  condition="$son.name eq $vo.pic">class="selected" </if> ><a href="javascript:void(0);"><img src="{$son.name}"></a></li>
						  </foreach> 
						 </ul>
						</dt>
						<dd class="goods-name"><a href="/shop/goods.html?gid={$vo.id}" title="{$vo.productname}" target="_blank">{$vo.productname}</a></dd>
						
						 <dd class="goods-info"><span class="price">
						 <if condition="$vo.price gt 0">
							￥{$vo.price}
							<if condition="$vo.point_num gt 0">
								+
							</if>
						</if>
						<if condition="$vo.point_num gt 0">
							{$vo.point_num}&nbsp;积分
						</if>
						<if condition="$vo.coin_num gt 0">
							{$vo.coin_num}&nbsp;币
						</if>
						 
						 </span><span class="goods-sold">售出：<strong>{$vo.goods_salenum}</strong> 件</span></dd>
						 <!-- <dd class="goods-promotion"><span>抢购商品</span></dd> -->
					   </dl>
					 </li>
					 </foreach>
				  </ul>
				</div>
				<div class="pagination">
				
					<ul>
					{$page}
					</ul>
					
				</div>
				
			 </div>
		    </div>


			<!-- 引入幻灯片JS -->
			<script type="text/javascript" src="__PUBLIC__/Home/js/jquery.flexslider-min.js"></script>
			<!-- 绑定幻灯片事件 -->
			<script type="text/javascript">
				$(window).load(function() {
					$('.flexslider').flexslider();

					// 图片切换效果
					$('.goods-thumb-scroll-show').find('a').mouseover(function() {
						$(this).parents('li:first').addClass('selected').siblings().removeClass('selected');
						var _src = $(this).find('img').attr('src');
						_src = _src.replace('_60.', '_240.');
						$(this).parents('dt').find('.goods-thumb').find('img').attr('src', _src);
					});
				});
			</script>
			<div class="clear">&nbsp;</div>
		</div>

		
 </block>
 <block name="footer">
 <include file="Index:footer" />
 </block>	